﻿<Window x:Class="Cs.Multilingual.Editor"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Editor" MinHeight="300" MinWidth="550" Height="300" Width="550">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="130"/>
            <ColumnDefinition Width="3"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Button x:Name="Refresh" Content="Refresh" VerticalAlignment="Top" Margin="10,10,10,0" Click="Refresh_Click"></Button>
        <ListBox x:Name="IdList" Margin="0,32,0,0" SelectionChanged="IdList_SelectionChanged" />
        <GridSplitter Grid.Column="1" Margin="0" HorizontalAlignment="Stretch" />
        <Grid Grid.Column="2"  Margin="0" MinWidth="400" >
            <Grid.RowDefinitions>
                <RowDefinition Height="65"/>
                <RowDefinition Height="100*"/>
            </Grid.RowDefinitions>



            <Button x:Name="AddLanguage" Content="Add Language Control" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="150" Height="20" Click="AddLanguage_Click"/>

            <ComboBox x:Name="LangName" VerticalAlignment="Top" Margin="165,10,163,0" Height="20" IsEditable="True"/>


            <!--<TextBox x:Name="LangName" Margin="165,10,163,0" TextWrapping="NoWrap" Text="" TextChanged="AllId_TextChanged" Height="20" VerticalAlignment="Top"/>-->

            <Button x:Name="RemoveLanguage" Content="Remove Language Control" Margin="0,10,10,0" VerticalAlignment="Top" Height="20" Click="RemoveLanguage_Click" HorizontalAlignment="Right" Width="148"/>


            <Label Content="All ID" HorizontalAlignment="Left" Margin="10,32,0,0" Height="26" VerticalAlignment="Top"/>
            <TextBox x:Name="AllId" Margin="53,35,90,0" TextWrapping="NoWrap" Text="" TextChanged="AllId_TextChanged" Height="20" VerticalAlignment="Top"/>
            <Button x:Name="RecordAll" Content="Record All" Margin="0,35,10,0" HorizontalAlignment="Right" Width="75" Height="20" VerticalAlignment="Top" Click="RecordAll_Click"/>

            <ScrollViewer Grid.Row="1">
                <StackPanel x:Name="LangData">
                </StackPanel>
            </ScrollViewer>

        </Grid>

    </Grid>
</Window>
